//
//  QueryBranchBankListOperation.m
//  PlayBall
//
//  Created by Edward Zhang on 12-5-28.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import "JddQueryBranchBankListOperation.h"

@implementation JddQueryBranchBankListOperation

@synthesize city;
@synthesize bank;

- (void)main{
    JddNetDataCommunication *netDataCommunication = [[JddNetDataCommunication alloc] init];
    
    NSString *bodyString = [JddParameterBuilder queryBranchBankListParameterOfCity:self.city bank:self.bank];
    	
    NSData *dataBranchBank = [netDataCommunication requestDataByPostBodyData:[bodyString dataUsingEncoding:NSUTF8StringEncoding]];
    [((NSObject*)self.delegate) performSelectorOnMainThread:@selector(QueryBranchBankListOperationResult:) withObject:dataBranchBank waitUntilDone:NO];    
}

@end
